export default {
    mounted(el: HTMLButtonElement, binding: { value: () => void; }) {
        let timer: number | undefined;
        el.addEventListener('click', () => {
            clearTimeout(timer);
            timer = setTimeout(() => {
                binding.value();
            }, 500); // 500 毫秒为防抖间隔时间
        });
    }
};